﻿using Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations.Schema;

namespace CRM.Models
{
    [Table("PointsConsumptionLog")]
    [Comment("公司积分配置")]
    public class PointsConsumptionLog :BaseModel
    {
        [Comment("Id")]
        public int Id { get; set; }

        [Comment("UserId")]
        public int UserId { get; set; }
        
        [Comment("GroupId")]
        public int GroupId { get; set; }
        
        [Comment("CompanyId")]
        public int CompanyId { get; set; }
        
        [Comment("OemId")]
        public int OemId { get; set; }

        [Comment("ConsumptionType")]
        public ConsumptionTypeEnum ConsumptionType { get; set; } = ConsumptionTypeEnum.NULL;
        public enum ConsumptionTypeEnum
        {
            NULL,
            SendingEmailByServer
        }
        
        [Comment("OperateUser")]
        public string OperateUser { get; set; }
        
        [Comment("PointsNum")]
        public int PointsNum { get; set; }
        
        [Comment("Ext")]
        public string Ext { get; set; }
    }
}